#include <stdio.h>

int main()
{
	FILE *fp;
	int i,k;
	fp = fopen("3.1.dat","r");
	if (NULL == fp)
	{
		perror("open");
		return 1;
	}
	scanf("%d",&k);
	fseek(fp,k,SEEK_SET);
	if (fscanf(fp,"%d",&i) != EOF)
		fprintf(stdout,"%d\n",i);
	if (fp) fclose(fp);
	return 0 ;
}